package cn.dakaqi.volunteer.insurance.services;

import cn.dakaqi.entities.VolunteerInsurance;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by chunyang on 2016/4/19.
 */
public interface VolunteerInsuranceDao extends PagingAndSortingRepository<VolunteerInsurance, Long>, JpaSpecificationExecutor<VolunteerInsurance>
{
    VolunteerInsurance findByVolunteerCode(String volunteerCode);
    VolunteerInsurance findByVolunteerCodeAndStatus(String volunteerCode, int status);
}
